import JModal from './JModal'
import JFormContainer from './JFormContainer.vue'
import JEditableTable from './JEditableTable.vue'
import JUpload from './JUpload.vue'
import JImageUpload from './JImageUpload.vue'

//引入需要全局注册的js函数和变量
import { Modal, notification,message } from 'ant-design-vue'

export default {
  install(Vue) {
    Vue.use(JModal)
    Vue.component('JFormContainer', JFormContainer)
    Vue.component('JImageUpload', JImageUpload)
    Vue.component('JUpload', JUpload)
    Vue.component('JEditableTable', JEditableTable)


    //注册全局js函数和变量
    Vue.prototype.$Jnotification = notification
    Vue.prototype.$Jmodal = Modal
    Vue.prototype.$Jmessage = message
  }
}
